
var sysconf={
		
   update:function() {
		
	   var data = $("#updateSysConfForm").serializeJson();
	  
	   var dicList = [];
	   
	   if(data.FACE_RATIO != data.OLD_FACE_RATIO){
		   dicList.push({"keyword":"FACE_RATIO","dicValue":data.FACE_RATIO});
	   }
	   
	   if(data.AUTO_EXIT != data.OLD_AUTO_EXIT){
		   dicList.push({"keyword":"AUTO_EXIT","dicValue":data.AUTO_EXIT});
	   }
	   
	   if(data.AGAIN_LOGIN_TIME != data.OLD_AGAIN_LOGIN_TIME){
		   dicList.push({"keyword":"AGAIN_LOGIN_TIME","dicValue":data.AGAIN_LOGIN_TIME});
	   }
	   
	   if(data.QUERY_INTERVAL_TIME != data.OLD_QUERY_INTERVAL_TIME){
		   dicList.push({"keyword":"QUERY_INTERVAL_TIME","dicValue":data.QUERY_INTERVAL_TIME});
	   }
	   
	   if(data.NON_WOKR_TIME != data.OLD_NON_WOKR_TIME){
//		   var rexTime =/^(\d){2}(:)(\d){2}(-)(\d){2}(:)(\d){2}$/;
//		   var reg = new RegExp(rexTime);
//		   var dicValue = data.NON_WOKR_TIME;
//		   if (! reg.test(dicValue)) {
//			   $("#noWorkTimeTips").html("时间格式不对，格式：hh:mm-hh:mm");
//			   return ;
//		   }
		   dicList.push({"keyword":"NON_WOKR_TIME","dicValue":data.NON_WOKR_TIME});
	   }
	   
	   if(data.FORCE_MODIFY_PWD != data.OLD_FORCE_MODIFY_PWD){
		   dicList.push({"keyword":"FORCE_MODIFY_PWD","dicValue":data.FORCE_MODIFY_PWD});
	   }
	   if(data.PWD_MODIFY_CYCLE != data.OLD_PWD_MODIFY_CYCLE){
		   dicList.push({"keyword":"PWD_MODIFY_CYCLE","dicValue":data.PWD_MODIFY_CYCLE});
	   }
	   if(data.LOGIN_AUTH_TYPE != data.OLD_LOGIN_AUTH_TYPE){
		   dicList.push({"keyword":"LOGIN_AUTH_TYPE","dicValue":data.LOGIN_AUTH_TYPE});
	   }
	   if(data.LOG_CLEAN_CYCLE != data.OLD_LOG_CLEAN_CYCLE){
		   dicList.push({"keyword":"LOG_CLEAN_CYCLE","dicValue":data.LOG_CLEAN_CYCLE});
	   }
	   var sysConf = {};
	   sysConf.dicList = dicList;
	   $.ajax({  
	        type : "POST",  //提交方式  
	        url : "sysconf/batch/update",//路径
	        dataType:"json",  
	        contentType:"application/json",  
	        data:JSON.stringify(sysConf),
	        success : function(result) {//返回数据根据结果进行相应的处理  
	            if (result.code == "SUCCESS" ) {  
	            	menuFullUrl('sysconf/view?pv=sysconf:list&status=1&dicType=1');
	            	alert("修改成功");                 
	            } else {  
	            	alert("修改失败"); 
	            	return ;
	            }  
	        }  
	    });

	}
	
}; 




